home *** CD-ROM | disk | FTP | other *** search
- 10 poke53280,2:poke53281,15:poke646,11:print"[147]":gosub480
- 20 printspc(19)"notepad"
- 30 printspc(19)"printer"
- 40 dimvlir(1,127)
- 50 fs$="notes":forct=0to15:pd$=pd$+chr$(160):nextct:fs$=left$(fs$+pd$,16)
- 60 open15,8,15,"i0"
- 70 input#15,er$,em$:ifer$<>"00"thenprinter$+" "+em$:close15:end
- 80 t=18:s=1:print"searching for notes"
- 90 open2,8,2,"#"
- 100 print#15,"u1";2;0;t;s:fc=0:fp=2:bp=5
- 110 print#15,"b-p";2;0:get#2,nt$,ns$:t=asc(nt$+chr$(0)):s=asc(ns$+chr$(0))
- 120 print#15,"b-p";2;fp:get#2,ft$:ifasc(fs$+chr$(0))=0then190
- 130 print#15,"b-p";2;bp
- 140 forct=0to15:get#2,bi$:fi=asc(bi$+chr$(0)):iffi>96andfi<123thenfi=fiand223
- 150 dn$=dn$+chr$(fi)
- 160 nextct
- 170 ifdn$=fs$then220
- 180 dn$=""
- 190 fc=fc+1:iffc=8andt<>0then100
- 200 iffc=8andt=0then510
- 210 fp=fp+32:bp=bp+32:goto120
- 220 print"standby-scanning notepad"
- 230 print#15,"b-p";2;bp-2:get#2,vt$,vs$:vt=asc(vt$+chr$(0)):vs=asc(vs$+chr$(0))
- 240 print#15,"u1";2;0;vt;vs:print#15,"b-p";2;2
- 250 get#2,pt$,ps$
- 260 pt=asc(pt$+chr$(0)):ps=asc(ps$+chr$(0)):ifpc=0andpt=0then520
- 270 ifpt=0then310
- 280 vlir(0,pc)=pt:vlir(1,pc)=ps
- 290 pc=pc+1:ifpc=127then310
- 300 goto250
- 310 close2:close15
- 320 ifpc>1thenprint"there are "pc"pages in this notepad":goto340
- 330 print"there is 1 page in this notepad"
- 340 print"do you want to print the e[146]ntire notepad or a s[146]ingle page;";
- 350 input"e/s";an$:ifan$="e"then380
- 360 ifan$="s"then420
- 370 goto340
- 380 forct=0topc-1
- 390 gosub530
- 400 nextct
- 410 printspc(18)"done!":end
- 420 print"which page do you want to print 1 -";pc
- 430 input"-> ";an$:ct=val(an$)-1:ifct<0orct>pcthenprint"[145][145][145][145]":goto420
- 440 gosub530
- 450 print"[145][145]do you want to print another page? "
- 460 input"y/n [157][157][157]";an$:ifan$="y"thenprint"[145][145][145][145]":goto420
- 470 printspc(18)"done!":end
- 480 forid=1to63:readni:poke895+id,ni:nextid
- 490 poke53269,3:poke2041,14:poke53288,11:poke53250,145:poke53251,55
- 500 return
- 510 printspc(4)"there are no notes on this disk![151]":close15:end
- 520 printspc(3)"there are no pages in the notepad![151]":close15:end
- 530 c=0:tc=0:np$="":open15,8,15:open2,8,2,"#"
- 540 print#15,"u1";2;0;vlir(0,ct);vlir(1,ct)
- 550 print#15,"b-p";2;2
- 560 get#2,pp$:tc=tc+1
- 570 pl=asc(pp$+chr$(0)):ifpl=0then620
- 580 ifpl>96andpl<123thenpl=pland223
- 590 np$=np$+chr$(pl)
- 600 iftc=254then620
- 610 goto560
- 620 close2:close15
- 630 open4,4:print#4,"page ";ct+1:print#4,np$:print#4:close4:return
- 640 rem *-> icon (sprite) data <-*
- 650 data255,255,255,128,000,001,131,255
- 660 data193,130,057,193,131,255,193,130
- 670 data000,065,130,000,065,130,000,065
- 680 data130,000,065,130,000,065,131,000
- 690 data065,130,128,065,131,255,193,128
- 700 data000,001,135,255,225,137,036,157
- 710 data159,255,253,159,255,253,143,255
- 720 data241,128,000,001,255,255,255,167
-